<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="./public/static/second/css/user_common.css">
    <title>个人中心</title>
    <style>
        table {
            border-collapse: collapse;
            width: 100%;
        }
        tr {
            border-top: 1px #DDDDDD solid;
            border-left: 1px #DDDDDD solid;
        }
        td, th {
            border-right: 1px #DDDDDD solid;
            border-bottom: 1px #DDDDDD solid;
            height: 30px;
            text-align: center;
        }
        th {
            background-color: #F5F5F5;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">
            <ul>
                <li><a href="index.php?s=/index/user/center.html">主页</a></li>
                <li><a href="index.php?s=/index/user/moneyin.html">入金</a></li>
                <li><a href="index.php?s=/index/user/moneyout.html">出金</a></li>
                <li><a href="index.php?s=/index/user/moneyinrecord.html">入金记录</a></li>
                <li class="light"><a href="index.php?s=/index/user/moneyoutrecord.html">出金记录</a></li>
            </ul>
        </div>
        <div class="main">
            <div class="caption">出金记录</div>
            <div class="content">
                <table>
                    <thead>
                        <tr>
                            <th>时间</th><th>订单编号</th><th>充值金额(RMB)</th><th>出金资金(USD)</th><th>出金类型</th><th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                    {{foreach $data.record_info as $item}}
                    <tr>
                        <td>{{$item.add_time}}</td><td>{{$item.order_num}}</td><td>{{$item.balance / 100}}</td><td>{{$item.balance / 100}}</td><td>{{$item.type}}</td><td>{{$item.status}}</td>
                    </tr>
                    {{/foreach}}
                    <tr>
                        <td colspan="6">
                            <button><a href="index.php?s=/index/user/MoneyOutRecord/page/1">首页</a></button>
                            <button><a href="index.php?s=/index/user/MoneyOutRecord/page/{{$data.page - 1 < 1 ? 1 : $data.page - 1}}">上一页</a></button>
                            <button><a href="index.php?s=/index/user/MoneyOutRecord/page/{{$data.page + 1 >= $data.page_total ? $data.page_total : $data.page + 1}}">下一页</a></button>
                            <button><a href="index.php?s=/index/user/MoneyOutRecord/page/{{$data.page_total}}">末页</a></button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</body>
</html>